package abstractfactory.source;

/**
 * @author Chen Guang
 * @date 2019/4/11 0011 下午 15:29
 */
public class Test {
    public static void main(String[] args) {

        IFactory iFactory = new ConcreteFactory1();
        AbstractProductA productA = iFactory.createProductA();
        productA.retrieve();
        productA.update();

        AbstractProductB productB = iFactory.createProductB();
        productB.create();
        productB.delete();
    }
}
